package com.dao;/*
 *
 *作者：张继成
 *任务：课程订单xml文件接口
 *
 *备注：
 *@Date2023/05/29/21:49
 ***/

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.entity.KechengdingdanEntity;
import com.entity.view.KechengdingdanView;
import com.entity.vo.KechengdingdanVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface KechengdingdanDao extends BaseMapper<KechengdingdanEntity> {

    void updateState(@Param("dingdanbianhao")String no,
                     @Param("ispay") String state,
                     @Param("zhifushijian")String gmtPayment,
                     @Param("alipayNo")String alipayTradeNo);

    List<KechengdingdanVO> selectListVO(@Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    KechengdingdanVO selectVO(@Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    List<KechengdingdanView> selectListView(@Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    List<KechengdingdanView> selectListView(Pagination page, @Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    KechengdingdanView selectView(@Param("ew") Wrapper<KechengdingdanEntity> wrapper);


    List<Map<String, Object>> selectValue(@Param("params") Map<String, Object> params, @Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    List<Map<String, Object>> selectTimeStatValue(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    List<Map<String, Object>> selectGroup(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<KechengdingdanEntity> wrapper);

}
